<?php
$this->title = "Profle";
$this->headTitle($this->title);


if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
 	require_once (APPLICATION_PATH . "\\functions\\utilities.php");
} else {
    require_once (APPLICATION_PATH . "//functions//utilities.php");
}

?>	

		
		<!-- start content -->
		<div id="profile_inside" class="content">
			
		<!--  Glavno meni -->
			<div id="InnerMenu">
				<?php $session = Zend_Registry::get('session');?>
				<ul >
					<li style=" display: inline; "><a href="<?php echo $this->url(array('controller'=>'Profile','action'=>'basic'))."?id=". $this->viewuser; ?>">Basic Info</a></li>
					<li style=" display: inline; "><a href="<?php echo $this->url(array('controller'=>'Profile','action'=>'medical'))."?id=". $this->viewuser; ?>">Medical Info</a></li>					
					<li style=" display: inline; "><a href="<?php echo $this->url(array('controller'=>'Profile','action'=>'Interests'))."?id=". $this->viewuser; ?>">Interests</a></li>					
				</ul>
				
				
				
				
				<form id="form_Statuses" name="form_Statuses" method="post">
					
					<label for="lbl_Status_Part1" id="lbl_Status_Part1"><b>At the moment i am Feeling:</b></label><br><br>
					<div id="Part2" style="width:14%; float:left;" >
						<label for="lbl_Status_Part2" id="lbl_Status_Part2" >BAD</label>
					</div>
					
					<div id="Part2" style="width:14%;float:left;" >
						<label for="lbl_Status_Part3" id="lbl_Status_Part3" >OK</label>
					</div>
					
					<div id="Part2" style="width:10%;float:left;" >
						<label for="lbl_Status_Part4" id="lbl_Status_Part4" >GOOD</label>
					</div><br><br>
					
					<div id="status_slider" style="width: 30%"></div><br>					
					<label for="lbl_Status_Part5" id="lbl_Status_Part5"><b>Because:</b></label><br>					
					
					<textarea id="txt_Status" name="txt_Status" rows="3" cols="49"></textarea><br>
					<input type="hidden" id="hdn_StatusValue" name="hdn_StatusValue" value="1">
					<input type="submit" id="btn_StatusSubmit" name="btn_StatusSubmit" value="Post">
				</form>
				
				<br/>
				<label><b>My status updates:</b></label>
				<?php if (!empty($this->statuses)) { ?>
				
					<table title="Statuses" id="hor-minimalist-a">
						<tr>
							<th>Message</th>
							<th>Time</th>
							<th></th>					
						</tr>
					<?php foreach($this->statuses as $status) : ?>
						<tr>
							<td> 
								<?php $statusline = Utilities::formMoodProfile($status['Text'], $status['Mood']);
								echo $statusline; ?> 
							</td>
							<td>
								<?php
									$time = new Zend_Date($status['DateUpdate']);																		
									$dateUpdated=$time->toString("HH:mm:ss dd-MM-YYYY");									
									echo $dateUpdated;
								?>
							</td>
							<td><img alt="<?php echo $status['id']; ?>" src="/med-advisor/application/layouts/scripts/css/Pictures/close.png" id="pic_deleteThreatment" class="deleteStatus"> </td>
						</tr>
				<?php endforeach; }?>				
				</table>
			</div>
		</div>
		
		<div id="pop_upDeleteStatus">
			<form id="form_DeleteStatus" name="form_DeleteStatus" method="post">
				<p>Are you sure that you want to delete this Status?</p>
				
				<input type="submit" name="btn_DeleteStatus" id="btn_DeleteStatus" value="Yes">
				<input type="button" name="btn_DeleteCancelStatus" id="btn_DeleteCancelStatus" value="No">
				<input type="hidden" id="hdn_StatusCurrentDelete" name="hdn_StatusCurrentDelete" value="">
			</form>
		</div>
		<!-- end content -->
		

		